#include "breakconf.h"

BreakConf::BreakConf()
{
    this->from = QTime();
    this->to = QTime();
    this->breakSecs = 0;
    this->breakIntervalSecs = 0;

    for(unsigned i = 0; i < WEEK_L; i++)
        this->days[i] = false;
}

bool BreakConf::isValid()
{
    bool r = false;
    if(!from.isValid())
        return r;
    if(!to.isValid())
        return r;
    if(from >= to)
        return r;
}
